﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _06_静态类
{
    class Program
    {
        static void Main(string[] args)
        {
            Person_Static.Id = 12;
            Person_Static.Name = "Jims";
            string str = Person_Static.GetMaxId();
            Console.WriteLine(str);

            Student s = new Student {Id=12,Name="Ren" };
            Student s2 = new Student { Id = 1234, Name = "RenJJJJJ" };
            Student.School = "BeiDa";
            Console.WriteLine("Id:{0},Name:{1},School:{2}",s.Id,s.Name,Student.School);
            Console.WriteLine("Id:{0},Name:{1},School:{2}", s2.Id, s2.Name, Student.School);
            Console.ReadKey();
        }
    }
}
